# !/usr/bin/python
# -*- coding: utf-8 -*-
import datetime


def utc_to_local(utc_str):
    tmpstr=utc_str.split(".")[0]
    UTC_FORMAT = "%Y-%m-%dT%H:%M:%S"
    utc_time = datetime.datetime.strptime(tmpstr, UTC_FORMAT)
    local_time = utc_time + datetime.timedelta(hours=8)
    return local_time.strftime("%Y-%m-%d %H:%M:%S")


if __name__ == "__main__":
    print(utc_to_local("2021-02-03T14:40:23.023476453Z"))